
export default[
    {
        path:'/customer',
        name:'customer',
        component: resolve => require(['@/views/Customer/index.vue'],resolve),
        children:[
            {
                path:'',
                name:'customer_main',
                component:resolve => require(['@/views/Customer/main/main.vue'],resolve)
            },
            {
                path:'detail',
                name:'detail',
                component:resolve => require(['@/views/Customer/main/dishDetail'],resolve)
            },
            {
                path:'shoppingCart',
                name:'shoppingCart',
                component:resolve => require(['@/views/Customer/main/shoppingCart.vue'],resolve)
            },
            {
                path:'order',
                name:'order',
                component:resolve => require(['@/views/Customer/main/order.vue'],resolve)
            },
            {
                path:'person',
                name:'person',
                component:resolve => require(['@/views/Customer/main/person.vue'],resolve),
                children:[
                    {
                        path:'addAddress',
                        name:'addAddress',
                        component:resolve => require(['@/component/addAddress.vue'],resolve)
                    }
                ]
            },
            {
                path:'toBePaid',
                name:'toBePaid',
                component:resolve => require(['@/views/Customer/main/toBePaid.vue'],resolve)
            },
            {
                path:'marketer',
                name:'marketer',
                component:resolve => require(['@/views/Customer/main/marketer.vue'],resolve)
            }
        ]
    },
    {
        path:'/pay',
        name:'pay',
        component: resolve => require(['@/views/Customer/pay.vue'],resolve)
    },
    {
        path:'/chat',
        name:'chat',
        component:resolve => require(['@/views/others/chat.vue'],resolve)
    }
]